package com.cys.dm.rest.service;

import com.cys.dm.client.base.DmImageClient;
import com.cys.dm.entity.base.DmImage;
import com.cys.dm.vo.CommonResponse;
import com.cys.dm.vo.VoUtil;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DmImageService {
    @Resource
    private DmImageClient dmImageClient;

    public CommonResponse<List<DmImage>> carousel(){
        List<DmImage> dmImages = dmImageClient.slideshow();
        return VoUtil.returnSuccess("查询轮播图成功",dmImages);
    }
}
